package hanjia;

/**
 * Description:
 * Author:    Dane
 * CreateTime:2025/2/10-下午3:19
 * Since  :   1.0
 * Version:   1.0
 */
public class LeetCode242 {

    public boolean isAnagram(String s, String t) {
        int[] zimu = new int[26];
        for (char c:s.toCharArray()){
            zimu[c-'a']++;

        }
        for (char c:t.toCharArray()){
            zimu[c-'a']--;

        }
        for (int i:zimu){
            if (i!=0){
                return false;
            }
        }
        return  true;



    }
}
